<template>
<ul>
  <li v-if="hasPermission(['admin', 'manager'])">查看</li>
  <li>增加</li>
  <li v-permission="['admin', 'manager']">修改</li>
  <li>删除</li>
</ul>
</template>

<script>
export default {
  name: "BasicView"
}
</script>

<script setup>
import {onMounted} from "vue";
import {hasPermission} from "@/store/permission";


onMounted(() => {
  initpage();
})

function initpage() {
  if (!hasPermission(['admin', 'manager'])) {
    return;
  }
}
</script>

<style scoped>

</style>